import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/user_login_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/user_login_entity.g.dart';

@JsonSerializable()
class UserLoginEntity {
	int? id = 0;
	@JSONField(name: "session_id")
	String? sessionId = '';
	@JSONField(name: "account_type")
	int? accountType = 0;
	UserLoginPlay? play;
	UserLoginDye? dye;

	UserLoginEntity();

	factory UserLoginEntity.fromJson(Map<String, dynamic> json) => $UserLoginEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserLoginEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserLoginPlay {
	bool? auto = false;
	@JSONField(name: "drama_id")
	int? dramaId = 0;
	int? sort = 0;

	UserLoginPlay();

	factory UserLoginPlay.fromJson(Map<String, dynamic> json) => $UserLoginPlayFromJson(json);

	Map<String, dynamic> toJson() => $UserLoginPlayToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserLoginDye {
	@JSONField(name: "chn_id")
	int? chnId = 0;
	String? ver = '';
	@JSONField(name: "agent_name")
	String? agentName = '';

	UserLoginDye();

	factory UserLoginDye.fromJson(Map<String, dynamic> json) => $UserLoginDyeFromJson(json);

	Map<String, dynamic> toJson() => $UserLoginDyeToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}